package com.cloud.check.api.service;

import com.cloud.check.api.bean.RecCheckCriteriaBean;
import com.cloud.check.api.bean.RecCheckForm;
import com.cloud.check.api.bean.RecCheckSearchBean;
import com.cloud.check.api.entity.RecCheck;
import com.github.pagehelper.PageInfo;

import java.util.Map;

public interface RecCheckService {

    /**
     * 更新保存检查信息
     * @param recCheckForm
     * @return
     */
    RecCheckForm saveUpdate(RecCheckForm recCheckForm);

    /**
     * 分页查询部门信息
     * @param criteria
     * @return
     */
    PageInfo<RecCheckSearchBean> listUnitPage(RecCheckCriteriaBean criteria);

    /**
     * 根据Id查找当前检查信息
     * @param recId
     * @return
     */
    RecCheckForm getRecCheckByRecId(long recId);

    /**
     * 检查作废
     * @param recId
     */
    void deleteCheeckById(long recId);

    /**
     * 页面改版 执法信息统计
     * @param unitCode
     * @return
     */
    Map<String,Object> getLawDynamicsInfo(String unitCode);
}
